package com.jimmy.tx.controller;

import com.jimmy.tx.service.RoleService;
import com.jimmy.tx.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version 1.0
 * @ ClassName App
 * <p> TODO
 * @ author JIMMY
 * @ Date 2020/11/5 0005 下午 9:26
 */
public class App4 {
    @Test
    public  void test2(){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext4.xml");
        RoleService roleService = (RoleService) ctx.getBean("roleService");
        roleService.transfer("jerry","tom",100.0);
    }
}
